import request from '@/utils/myAioxs'

//通知公告列表
export function getNoticeList(data) {
  return request({
    url: '/news/v1/notice-list-new',
    method: 'post',
    data
  })
}
export function getNoticeDetail(id) {
  return request({
    url: `/news/v1/notice-new/${id}`,
    method: 'get',
  })
}
export function getNoticeInfo(id) {
  return request({
    url: `/notice/v1/info/${id}`,
    method: "get",
  });
}

//政策法规列表
export function getOfficialtrainingList(data) {
  return request({
    url: '/officialtraining/v1/search',
    method: 'post',
    data
  })
}
export function getOfficialtrainingDetail(id) {
  return request({
    url: `/officialtraining/v1/get-officialtraining-info/${id}`,
    method: 'get',
  })
}
